package run.bottle.gof23.builder.d1;

public class Worker extends Builder {

    private Product product;

    public Worker() {
        product = new Product();
    }

    void builderA() {
        product.setBuilderA("牛逼的底盘");
        System.out.println("牛逼的底盘");

    }

    void builderB() {
        product.setBuilderB("牛逼的车身");
        System.out.println("牛逼的车身");
    }

    void builderC() {
        product.setBuilderC("牛逼的发动机");
        System.out.println("牛逼的发动机");
    }

    void builderD() {
        product.setBuilderD("牛逼的电气设备");
        System.out.println("牛逼的电气设备");
    }

    Product getProduct() {
        return product;
    }
}
